//mongodb配置文件


//服务器配置
const DB = {
    USER_NAME: 'ivan',
    PASSWORD: 'asdfr234',
    SERVER: '139.196.196.90',
    PORT: '27017',
    DB_NAME: 'front_page'
}


//连接配置
const uri = `mongodb://${DB.USER_NAME}:${DB.PASSWORD}@${DB.SERVER}:${DB.PORT}/${DB.DB_NAME}?authSource=admin`

const options = {
    autoIndex: true, // Don't build indexes
    useNewUrlParser: true,
    useUnifiedTopology: true,
    bufferCommands: true
}

module.exports = {
    uri,
    options
}